package com.tencent.examples.blueking.mongo.repository;

import com.tencent.examples.blueking.mongo.model.HostBase;
import com.tencent.examples.blueking.mongo.model.ObjectBase;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.data.repository.query.QueryByExampleExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HostBaseRepository extends MongoRepository<HostBase, String>, QueryByExampleExecutor<HostBase> {

    @Query(value = "{" +
            "}")
    List<ObjectBase> findObjectBaseTotal();

}
